package com.doupi.partner.service;

import com.doupi.partner.dal.model.AdministratorRoleHasPermission;
import com.doupi.partner.util.Pagination;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface AdministratorRoleHasPermissionService {
	int deleteByPrimaryKey(Long id);

	int insert(AdministratorRoleHasPermission record);

	AdministratorRoleHasPermission selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(AdministratorRoleHasPermission record);

	int countAdministratorRoleHasPermission(AdministratorRoleHasPermission administratorRoleToAdministratorPermission);

	List<AdministratorRoleHasPermission> queryAdministratorRoleHasPermissions(AdministratorRoleHasPermission administratorRoleToAdministratorPermission, RowBounds rowBounds);

	Pagination<AdministratorRoleHasPermission, AdministratorRoleHasPermission> queryAdministratorRoleHasPermissions(
			Pagination<AdministratorRoleHasPermission, AdministratorRoleHasPermission> pagination);

	int deleteByAdministratorRoleId(Long administratorRoleId);

	int deleteByAdministratorPermissionId(Long administratorPermissionId);

	List<AdministratorRoleHasPermission> queryByAdministratorRoleId(Long administratorRoleId);
}
